//验证指针复制给变量后，改变变量的值后不影响指针所指向的值

#include <stdio.h>

struct S{
    int i;
};

int main(){
    struct S a = {1};
    struct S *b = &a;
    struct S c = *b;
    printf("%d,%d,%d\n", a.i, b->i, c.i);
    c.i = 2;
    printf("%d,%d,%d\n", a.i, b->i, c.i);
    return 0;
}
